﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NetMessage
{
    /// <summary>
    /// 消息的参数
    /// </summary>
    public class Paramter
    {
        /// <summary>
        /// 参数名字
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 参数说明
        /// </summary>
        public string Info { get; set; }

        /// <summary>
        /// 参数类型
        /// </summary>
        public CPlusType CPlusType { get; set; }

        /// <summary>
        /// 尺寸
        /// </summary>
        public int Size { get; set; }
    }

    /// <summary>
    /// 往后参数的类型
    /// </summary>
    public enum CPlusType
    {
        /// <summary>
        /// 整形
        /// </summary>
        Int,

        /// <summary>
        /// 浮点
        /// </summary>
        Float,

        /// <summary>
        /// 字符
        /// </summary>
        Char,

        /// <summary>
        /// 定长的字符串数组
        /// </summary>
        CharArray,

        /// <summary>
        /// 字符串
        /// </summary>
        String,

        /// <summary>
        /// 自定义类
        /// </summary>
        Class,
    }
}
